package mr.zhang.utils;

/**
 * Created by jerry on 15/2/2.
 * E-mail:huaxinxc@me.com
 */
public class CoderUtil {

    /**
     * 生成6位随机码
     * @return
     */
    public static String getCoder() {


        String coder  = String.valueOf((int)(Math.random() * 1000000));

        if (coder.length()<=5){
            coder = String.valueOf((int)(Math.random() * 1000000));
            System.out.println("循环次数♻️");
        }

        return coder;
    }




}
